function oembedit(){
		// Available services and their specific-url
		var services = {
			"embly": {url:"http://api.embed.ly/1/oembed?url="},
			"youtube": {url: "http://www.youtube.com/watch?v="},
			"vimeo": {url: "http://vimeo.com/"},
			"hulu": {url: "http://www.hulu.com/watch/"},
			"facebook": {url: "http://www.facebook.com/video/video.php?v="},
			"dailymotion": {url: "http://www.dailymotion.com/oembed/video/"}
		};

		// Find any images with the "oembed"
		// class name and configure approp.
		$('img[class*="oEMBEDit"]').each(function() {
			var el = this,
				 element = $(this),
				 endElement = document.createElement("div"),
				 newElement = document.createElement("div"),
				 options = element.attr('data-oembedit').split('|'),
				 service = options[0],
				 serviceIdent = options[1],
				 serviceClass = options[2];
				 
				 $(newElement).width(element.width());
				 $(newElement).height(element.height());
			
			if(service && serviceIdent) {
				element.css("cursor","pointer");
				//element.wrap('<div style="position: relative;">This is just a test...</div>');
			
				if(typeof service === "string" && services[service.toLowerCase()]) {
					if(service.search(/http/gi) !== 0) {
						$.getJSON(services["embly"].url + escape(services[service.toLowerCase()].url) + serviceIdent + '&callback=?', function(data) {
							element.attr("src", data.thumbnail_url);
							endElement.innerHTML = data.html;
						});
					} else {
					
					}
				} else {
					console.log("Can not find service: " + service);
				}
				
				//var holder = document.createElement("div");
				//holder.innerHTML = el.innerHTML;
				//alert(holder.innerHTML);
				//el.parentNode.replaceChild(holder, el);
				
				jQuery.data(element, "size", {width: $(element).width(), height: $(element).height()});
				//alert(jQuery.data(element, "size").width);
				
				$(endElement).addClass(serviceClass);
				//$(endElement).css("overflow", "hidden");
				
				element.click(function(event) {
					el.parentNode.replaceChild(endElement, el);
				});

			} else {
				element.click(function(event) {
					console.log(event, $(this));
				});
			}
		});